<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
 
 
<head>
	<meta charset="utf-8"/>
  	<title>管理员后台登录</title>
  	
  	<%
		response.setHeader("Pragma","No-cache"); 
		response.setHeader("Cache-Control","no-cache"); 
		response.setDateHeader("Expires", 0);
		String path = request.getContextPath();
		String port = (0<request.getServerPort()) ? (":"+request.getServerPort()) : "";
		String basePath = request.getScheme()+"://"+request.getServerName()+port+path+"/";
	%>
  	
  	<!-- Loading Bootstrap -->
 	<link href="<%=basePath%>/resources/adminCss/css/bootstrap.css" rel="stylesheet"/>

  	<!-- Loading Stylesheets -->    
  	<link href="<%=basePath%>/resources/adminCss/css/style.css" rel="stylesheet"/>
  	<link href="<%=basePath%>/resources/adminCss/css/login.css" rel="stylesheet"/>
  
 	<!-- Loading Custom Stylesheets -->    
  	<link href="css/custom.css" rel="stylesheet"/>

  	<link rel="shortcut icon" href="<%=basePath%>/resources/adminCss/images/favicon.ico"/>

  	<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
    <!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <![endif]-->
    
    
    <script type="text/javascript">
	    function submitForm(){
	        var loginName = document.forms[0]["loginName"];
	        var onePassword = document.forms[0]["onePassword"];
	        if(loginName.value == ""){
	            alert("账号不能为空!");
	            
	            return false;
	        }
	        if(onePassword.value == ""){
	            alert("密码不能为空!");
	            
	            return false;
	        }
	        return true;
	    }
	    function clearForm(){
	        document.forms[0]["loginName"].value="";
	        document.forms[0]["onePassword"].value="";
	    }
	</script>
	
    </head>
    
    
    <body >
        
	<section id="login">
	    <div class="row animated fadeILeftBig">
	     <div class="login-holder col-md-6 col-md-offset-3">
	       <h2 class="page-header text-center text-primary"> 欢迎登录管理员后台 </h2>
	       <form role="form" action="loginAdmin.shtml" method="post" onsubmit="return submitForm()" >
	        <div class="form-group">
	          <input type="text" class="form-control" id="loginName" name="loginName" placeholder="请输入登录名..."/>
	        </div>
	        <div class="form-group">
	          <input type="password" class="form-control" id="onePassword" name="onePassword" placeholder="请输入密码..."/>
	        </div>
	        
	        <div style="text-align:center;color:red;">
	          ${retMsg}
	        </div>
	        
	        <div class="form-footer">
	           
	          <button type="submit" class="btn btn-info pull-right btn-submit"> 登 录 </button>
	        </div>
	
	      </form>
	    </div>
	  </div>
	</section>
 
 
<!-- Load JS here for Faster site load =============================-->
 
<script src="<%=basePath%>/resources/adminCss/js/login.js"></script>





</body>
</html>
